package com.zyl.blog.common.domain.data.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog
 * @Package: com.zyl.common.domain.data.bean
 * @ClassName: ResponseDetail
 * @Description 响应明细对象
 * @Author FinalFantasy
 * @Date 2025/2/17-19:02
 */
@Data
@AllArgsConstructor
public class ResponseDetail {
    /** 响应状态码 */
    private int code;

    /** 响应消息 */
    private String message;

    /** 业务数据（脱敏后） */
    private Object data;

    /** 响应时间戳 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timestamp;
}